package com.shoux.api.web.entity.apiData;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 动产抵押-抵押物信息
 * </p>
 *
 * @author xiaoZhi
 * @since 2022-03-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("mortgagepawnlist")
@ApiModel(value="MortgagepawnlistEntity对象", description="动产抵押-抵押物信息")
public class MortgagepawnlistEntity extends Model<MortgagepawnlistEntity> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "企业名称")
    @TableField("enterpriseName")
    private String enterprisename;

    @ApiModelProperty(value = "统一信用代码")
    private String creditcode;

    @ApiModelProperty(value = "登记编号")
    @TableField("mabRegNo")
    private String mabregno;

    @ApiModelProperty(value = "名称")
    @TableField("mabPawnName")
    private String mabpawnname;

    @ApiModelProperty(value = "所有权或使用权归属")
    @TableField("mabPawnOwner")
    private String mabpawnowner;

    @ApiModelProperty(value = "数量、质量、状况、所在地等情况")
    @TableField("mabPawnDetails")
    private String mabpawndetails;

    @ApiModelProperty(value = "备注")
    @TableField("mabPawnRemark")
    private String mabpawnremark;

    @ApiModelProperty(value = "抵押物总数量")
    @TableField("mabPawnAmount")
    private String mabpawnamount;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
